home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / mvpforth.arc / MVPFORTH.DOC < prev    next >
Text File  |  1986-04-20  |  4KB  |  58 lines

  1.  
  2. ///////////////////////////////
  3.     Here is a summary of how to get started with the MVPFORTH
  4. public domain program. Also, Mountain View Press offers the book
  5. ALL ABOUT FORTH, by Glen Haydon.
  6.  
  7.     With MVPFORTH.COM in the default drive, type MVPFORTH to load
  8. the MVPFORTH operating system from DOS.  Then typing VLIST will list
  9. the available FORTH words ( FORTH-79 compatible ) and ad
  10. the MVPFORTH operating system from DOS.  Then typing VLIST will list
  11. the available FORTH words ( FORTH-79 compatible ) and typing BYE
  12. will return DOS.
  13.     If it is desired to have MVPFORTH loaded automatically upon
  14. power-on, use the RENAME command in DOS to change the name of MVPFORTH.
  15. COM to COMMAND.COM.  In this case, the BYE word will be ineffective.
  16.  
  17.  
  18. Examples of some of the more useful FORTH editing words:                       
  19. 100 LIST     Lists block 100 and makes it the current screen                   
  20. 0 T          Types Line 0 of current screen                                    
  21. P xxx        Puts xxx as the current line                                      
  22. U xxx        puts xxx as line Under current line                               
  23. 101 7 M      Moves current line to under block 101 line 7                      
  24. X            deletes current line                                              
  25. F xxx        Finds xxx in current line & makes it currnt cursr positn          
  26. 3 S xxx      Searches for xxx in 3 blks starting at curr blk                   
  27. E            after F, erases the string just found                             
  28. D xxx        Deletes the next occurrence of xxx in curr line                   
  29. TILL xxx     deletes all from curr cursor positn 'Til & including xxx          
  30. I xxx        Inserts xxx beginning just before cursor                          
  31. R xxx        after F yyy, replaces yyy with xxx                                
  32.                                                                                
  33. Note:  FORTH words are divided into "vocabularies", not all of which           
  34. are available at once.  FORTH, EDITOR, and ASSEMBLER are words that            
  35. select the correponding vocab as the current vocab.  You can define            
  36. your own vocabs by using the FORTH words VOCABULARY and DEFINITIONS.           
  37. Example:                                                                       
  38.              VOCABULARY MATH                                                   
  39.              MATH DEFINITIONS                                                  
  40.              : SUM ( n1 n2 -> )  + . ;                                         
  41.              FORTH                                                             
  42. This creates a new vocab, MATH, containing the word SUM, and which             
  43. may be extended by entering more definitions while MATH is current.            
  44. Any existing vocab, say XXX, is made current just by typing its name.          
  45. Caution: The same word-name can be assigned totally different definitons       
  46. in different vocabs, and only the current vocab will be active.                
  47.                                                                                
  48. A tip: When listing on the screen, e.g., XXX VLIST, hit any key to halt,       
  49. again to resume, and hold down to cancel.                                      
  50.                                                                                
  51. Another caution:  If line 0 of a block is all blanks, that block               
  52. will fail to load, but no message will be issued! It's a FORTH                 
  53. convention to begin each block on line 0 (eg, with a comment).                 
  54.  
  55.  
  56.                              ///  Bob Sawyer  ////////////////////////
  57.                              //////////////////// Torrance, CA ///////
  58.